print("-" * 30, "欢迎使用员工管理系统", "-" * 30)
employee = []
while True:
    print("请选择要做的操作：")
    print("\t1.查询员工")
    print("\t2.添加员工")
    print("\t3.删除员工")
    print("\t4.退出系统")
    user_choose = input("请选择[1-4]:")
    if user_choose == "1":
        n = 1
        print("序号\t姓名\t年龄\t性别\t住址")
        if len(employee) != 0:
            for i in employee:
                print(f"{n}\t{i}")
                n += 1

    elif user_choose == "2":
        s = input("请输入添加信息的姓名：")
        s = s + "\t" + input("请输入添加信息的年龄：")
        s = s + "\t" + input("请输入添加信息的性别：")
        s = s + "\t" + input("请输入添加信息的住址：")
        print("-" * 82)
        print("您将要添加的信息为：", s)
        option = input("是否确认添加该信息[Y/N]：")
        if option == "Y":
            employee = employee + [s]
            print("已添加完毕")
        else:
            print("已取消添加")
    elif user_choose == "3":
        del_1 = int(input("请输入你想要删除的员工序号：")) - 1
        if del_1 >= 0 and del_1 < len(employee):
            print("-" * 82)
            print("您将要删除的信息为：", employee[del_1])
            option = input("是否确认删除该信息[Y/N]：")
            if option == "Y":
                employee.pop(del_1)
                print("已删除完毕")
            else:
                print("已取消删除")
        else:
            print("输入有误！")
    elif user_choose == "4":
        print("谢谢使用，再见！")
        break
    else:
        print("您的输入有误，请重新选择！")
    print("-" * 82)
